package com.wk.springboot.jdk8.lambda;

/**
 * 测试类
 */
public class Main {

    public static void main(String[] args) {

        Person person = new Person("jerry",30);
        boolean isTrue = ((TestPersonAge)p-> {if(p.getAge()>25){return true;}else{ return false;}}).testPerson(person);
        System.out.println("此人的年龄"+(isTrue?"超过了":"没有超过")+"25岁");

    }
}
